const { defineConfig } = require('@vue/cli-service')
const path = require('path');
module.exports = defineConfig({
  transpileDependencies: true,
  pluginOptions: {
    'style-resources-loader': {
        preProcessor: 'less',
        patterns: [
            // 全局变量路径
            path.resolve(__dirname, './src/assets/css/index.less'),
          ],
      },
  },
  devServer:{
    open:true,
    proxy:{
      "/imgApi": {
        target: 'https://vivo50-kfc.oss-cn-hangzhou.aliyuncs.com',
        changeOrigin: true,
        pathRewrite:{
          '^/imgApi':''   //请求的时候使用这个api就可以
        }
      }
    }
  }
})
